import request from '@/utils/request';

// 获取自动站日报表格数据
export function getAutoStationDailyReport (params) {
  return request({
    url: '/monitor/autohourdata/dailyReport',
    method: 'get',
    params,
  });
}

// 获取自动站周、月、季报
export function getzynyReport (params) {
  return request({
    url: '/monitor/autodaydata/weeklyReport',
    method: 'get',
    params,
  });
}

// 获取自动站年报
export function getAutoStationYearReport (params) {
  return request({
    url: '/monitor/autodaydata/yearReport',
    method: 'get',
    params,
  });
}

// 获取多断面单因子 /monitor/autohourdata/itemlist

export function getMultiSectionSingleFactor (params) {
  return request({
    url: '/monitor/autohourdata/itemlist',
    method: 'post',
    data: params,
  });
}

// 水质对比分析 /monitor/autovaluatedaydatastatistics/comparedata
export function getWaterQualityComparisonAnalysis (params) {
  return request({
    url: '/monitor/autovaluatedaydatastatistics/comparedata',
    method: 'get',
    params,
  });
}


// -------------------------评价分析------------------------------------

//水质级别分布图
export function getWaterFb (params) {
  return request({
    url: '/monitor/integrationevaluatedata/qualityLevelDistribution',
    method: 'get',
    params,
  });
}

// 断面达标情况
export function getSectionDb (params) {
  return request({
    url: '/monitor/integrationevaluatedata/standardDistribution',
    method: 'get',
    params,
  });
}

// 断面水质列表
export function getSectionWaterQualityList (params) {
  return request({
    url: '/monitor/integrationevaluatedata/qualityLevelList',
    method: 'get',
    params,
  });
}

// 断面水质详情
export function getSectionWaterQualityDetail (params) {
  return request({
    url: '/monitor/integrationevaluatedata/yearQualityLevelDistribution',
    method: 'get',
    params,
  });
}


//优三劣五总结（月）

export function getQualitySummary (params) {
  return request({
    url: '/monitor/integrationevaluatedata/excellentThreeInferiorFiveSum',
    method: 'get',
    params,
  });
}

// 优三劣五总结（年）

export function getQualitySummaryYear (params) {
  return request({
    url: '/monitor/integrationevaluatedatayear/excellentThreeInferiorFiveSum',
    method: 'get',
    params,
  });
}

// /monitor/autovaluatehourdata/newlist
// 在线监测数据
export function getOnlineMonitoringData (params) {
  return request({
    url: '/monitor/autovaluatehourdata/newlist',
    method: 'get',
    params,
  });
}